翻訳と辞書
Words near each other
・ Hierarchical constraint satisfaction
・ Hierarchical control system
・ Hierarchical Data Format
・ Hierarchical database model
・ Hierarchical decision process
・ Hierarchical Dirichlet process
・ Hierarchical Editing Language for Macromolecules
・ Hierarchical epistemology
・ Hierarchical fair-service curve
・ Hierarchical File System
・ Hierarchical generalized linear model
・ Hierarchical hidden Markov model
・ Hierarchical INTegration
・ Hierarchical internetworking model
・ Hierarchical matrix
Hierarchical model–view–controller
・ Hierarchical modulation
・ Hierarchical Music Specification Language
・ Hierarchical namespace
・ Hierarchical network model
・ Hierarchical organization
・ Hierarchical proportion
・ Hierarchical RBF
・ Hierarchical routing
・ Hierarchical state routing
・ Hierarchical storage management
・ Hierarchical structure of the Big Five
・ Hierarchical task network
・ Hierarchical temporal memory
・ Hierarchical value cache


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Hierarchical model–view–controller : ウィキペディア英語版
Hierarchical model–view–controller

Hierarchical model–view–controller (HMVC) is a software architectural pattern, a variation of model–view–controller (MVC) similar to presentation–abstraction–control (PAC), that was published in 2000 in an article〔
〕 in JavaWorld Magazine, the authors apparently unaware〔
〕 of PAC which was published 13 years earlier.
The controller has some oversight. The controller selects the model and then selects the view, so there is an approval mechanism by the controller. The model prevents the view from accessing the data source directly.
==Example==


The largest practical benefit of using an HMVC architecture is the "widgetization" of content structures. An example might be comments, ratings, Twitter or blog RSS feed displays, or the display of shopping cart contents for an e-commerce website. It is essentially a piece of content that needs to be displayed across multiple pages, and possibly even in different places, depending on the context of the main HTTP request.
Traditional MVC frameworks generally don't provide a direct answer for these types of content structures, so people generally end up duplicating and switching layouts, using custom helpers, creating their own widget structures or library files, or pulling in unrelated data from the main requested Controller to push through to the View and render in a partial. None of these are particularly good options, because the responsibility of rendering a particular piece of content or loading required data ends up leaking into multiple areas and getting duplicated in the places it is used.
HMVC, or specifically the ability to dispatch sub-requests to a Controller to handle these responsibilities aims to solve this problem. The structure mimics that of traditional MVC. You need to load some data about comments, and display them in HTML format. So you send a request to the comments Controller with some parameters, it interacts with the Model, picks a View, and the View displays the content. The difference from a traditional MVC is that instead of displaying the comments in a fully separated page, you display them inline, below the blog article the user is viewing. (Although an HMVC approach allows you to serve both internal and external requests with the same controller.) In this regard, HMVC strives to increase code modularity, aid re-usability, and maintain a better separation of concerns.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Hierarchical model–view–controller」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.